package com.wetao.module_homework.contract;

import com.wetao.lib_common.base.BasePresenter;
import com.wetao.lib_common.base.BaseResponse;
import com.wetao.lib_common.base.BaseViewImp;
import com.wetao.lib_common.bean.response.QueryExamQuestionsResponse;

import java.util.HashMap;

/**
 * author: zhouyh
 * created on: 2019-11-15 16:27
 * description:
 */
public interface HomeworkDetailActivityCon {

    interface View extends BaseViewImp {
        void getQuestionListResult(BaseResponse<QueryExamQuestionsResponse> response);
        void getQuestionListFailed();

        void updateUnderstandResult(BaseResponse resp);
        void updateUnderstandFail();

    }

    abstract class Presenter extends BasePresenter<View> {
        public abstract void getQuestionList(HashMap<String, String> map, boolean isDialog, boolean isCancelable);
        public abstract void updateUnderstand(HashMap<String, String> map,boolean isDialog, boolean cancelable);
    }
}
